#ifndef TEXTURE_H
#define TEXTURE_H

#include <string>
#include <SDL.h>

class Texture
{
	public:
	Texture();
	~Texture();

	bool IsLoaded();
	int GetId();
	std::string GetFilename();
	SDL_Surface* GetTexture();
	void Load(std::string filename);
	void Unload();
	void Draw(SDL_Rect* sourceRect, SDL_Surface* screen, SDL_Rect* destRect);
	void EnableAlpha(bool enable);

	private:

	bool m_isLoaded;
	int m_Id;
	Uint32 m_alphaKey;
	std::string m_filename;
	SDL_Surface* m_texture;
};
#endif //TEXTURE_H